# -*-coding:utf-8 -*-

import pandas as pd

def count_non_empty_rows(csv_file_path):
    try:
        # 读取 CSV 文件
        df = pd.read_csv(csv_file_path)
        # 统计非空行的数量
        non_empty_row_count = df.dropna().shape[0]
        return non_empty_row_count
    except Exception as e:
        print(f"发生错误: {e}")
        return None